package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.dto.stock.snap.StockAgeEntity;
import com.cloudkinto.dto.stock.snap.sku.StockSkuSegmentPageDto;
import com.cloudkinto.dto.stock.snap.sku.StockSkuSnapPageDto;
import com.cloudkinto.entity.StockHistoryDetailDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hua
 * @since 2024-12-03
 */
public interface StockHistoryDetailDao extends BaseMapper<StockHistoryDetailDo> {
    int insertBatch(List<StockAgeEntity> list);

    IPage<StockSkuSnapPageDto> productStockAge(@Param("page") IPage<StockSkuSnapPageDto> page, @Param("map") Map<String, Object> map);

    List<StockSkuSnapPageDto> productStockAge(@Param("map") Map<String, Object> map);

    IPage<StockSkuSegmentPageDto> productSegAge(@Param("page") IPage<StockSkuSegmentPageDto> page, @Param("map") Map<String, Object> map);
    List<StockSkuSegmentPageDto> productSegAge(@Param("map") Map<String, Object> map);

}
